<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="rich" uri="http://richfaces.ajax4jsf.org/rich"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="StyleSheet" type="text/css"
	href="/PortalDoCerrado/style/estilos.css" media="screen" />
<script type="text/javascript"
	src="/PortalDoCerrado/resources/jquery.maskedinput-1.2.1.js"></script>

</head>
<body>
	<f:view>
	<h:graphicImage value="/images/uegcerrado.jpg"/>
		<h:form>
			<rich:panel header="Login">
				<h:panelGrid columns="2">
					<h:outputText value="E-mail :" styleClass="rotulos" />
					<h:inputText id="email" value="#{pessoaMB.pessoa.email}"
						styleClass="edit" size="90" style=" width : 150px;">
						<f:validator validatorId="emailValidator" />
					</h:inputText>
					<h:outputLabel for="senha" value="Senha :" styleClass="rotulos" />
					<h:inputSecret id="senha" styleClass="edit"
						validatorMessage="A senha deve ter no mínimo 6 caracteres!"
						value="#{pessoaMB.pessoa.senha}" size="60" style=" width : 150px;">
						<f:validateLength minimum="6" />
					</h:inputSecret>

					<h:commandButton id="botao" image="/images/entrar.png"
						action="#{pessoaMB.login}" />
				</h:panelGrid>
				<h:panelGrid columns="1">
					<h:outputText
						value="Não possui cadastro? Então clique na imagem e faça já o seu!"
						styleClass="rotulos" style="width : 500px;" />
					<h:commandLink id="Next" action="toCadastro">
						<h:graphicImage value="/images/210.gif" alt="Next" title="Next" />
					</h:commandLink>
				</h:panelGrid>
			</rich:panel>
			<rich:messages />
		</h:form>
	
	</f:view>
</body>
</html>